			
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DDF.Entity;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;
		
namespace ARR.Entities
{
	[DataContract]
	[Serializable]	
	public partial class TheoreticalMargin : EntityBase
	{
		[DataMember]
		private TheoreticalMarginRow row;
		
		public TheoreticalMargin(TheoreticalMarginRow row)
		{
			this.row = row;
		}
		
		public TheoreticalMargin()
		{
			this.row = new TheoreticalMarginRow();
		}
		
		[DataMember]
		public int Id
		{
			get { return row.Id; }
			set { row.Id = value; }
		}

		[DataMember]
		public int CountryId
		{
			get { return row.CountryId; }
			set { row.CountryId = value; }
		}

		[DataMember]
		public int? CategoryId
		{
			get { return row.CategoryId; }
			set { row.CategoryId = value; }
		}

		[DataMember]
		public int? ArticleId
		{
			get { return row.ArticleId; }
			set { row.ArticleId = value; }
		}

		[DataMember]
		public decimal Margin
		{
			get { return row.Margin; }
			set { row.Margin = value; }
		}

		
		public TheoreticalMarginRow GetRow()
        {
            return row;
        }
		
	} 
} 
